package com.iran.chainOfResponsibility;

/**
 * 处理请示得接口
 */
public abstract class Handler {
    //处理请求的继任者
    protected Handler successor;

    public void setSuccessor(Handler successor) {
        this.successor = successor;
    }

    /**
     * 处理请求的抽象方法
     * @param request
     */
    public abstract void handleRequest(int request);
}
